
.dashboard-container {
  position: relative;
  // height: 100vh;
  // overflow: hidden;
  background: #0a1320;
}

.tech-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a1320 0%, #142850 50%, #0a1320 100%);
  z-index: -3;
  
  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
      radial-gradient(circle at 20% 30%, rgba(0, 100, 255, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(0, 200, 255, 0.1) 0%, transparent 50%);
  }
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 150, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -2;
  opacity: 0.3;
}

.dashboard-header {
  height: 80px;
  background: rgba(13, 25, 42, 0.9);
  border-bottom: 2px solid rgba(0, 150, 255, 0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  position: relative;
  backdrop-filter: blur(10px);
  
  &::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00c6ff, transparent);
    animation: headerGlow 3s infinite;
  }
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
}

.company-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.header-title {
  text-align: left;
}

.company-name {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 198, 255, 0.5);
  margin-bottom: 2px;
}

.system-name {
  font-size: 14px;
  color: #a0b3c6;
  letter-spacing: 2px;
  font-weight: 300;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.real-time-info {
  text-align: right;
}

.current-date {
  font-size: 14px;
  color: #00c6ff;
  margin-bottom: 2px;
  font-weight: 300;
}

.current-time {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 198, 255, 0.7);
  letter-spacing: 1px;
}

.enter-console-btn {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-weight: bold;
  box-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
  transition: all 0.3s ease;
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 198, 255, 0.6);
    background: linear-gradient(90deg, #00b4ff, #0066ff);
  }
}

@keyframes headerGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.dashboard-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 20px;
  height: calc(100vh - 200px);
}

.data-panel {
  background: rgba(13, 25, 42, 0.8);
//   border: 1px solid rgba(0, 150, 255, 0.3);
//   border-radius: 12px;
//   padding: 20px;
  box-shadow: 0 0 30px rgba(0, 150, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.right-panel {
  // justify-content: space-between;
}

.panel-title {
  font-size: 16px;
  color: #00c6ff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0, 150, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  
  i {
    font-size: 18px;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: rgba(0, 120, 255, 0.15);
  border: 1px solid rgba(0, 150, 255, 0.2);
  border-radius: 10px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 150, 255, 0.3);
    border-color: rgba(0, 198, 255, 0.5);
  }
  
  &.primary { border-bottom: 4px solid #1890ff; }
  &.success { border-bottom: 4px solid #52c41a; }
  &.danger { border-bottom: 4px solid #ff4d4f; }
  &.warning { border-bottom: 4px solid #faad14; }
}

.stat-icon {
  font-size: 24px;
  color: #00c6ff;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 150, 255, 0.2);
  border-radius: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 2px;
}

.stat-label {
  color: #a0b3c6;
  font-size: 14px;
  margin-bottom: 2px;
}

.stat-desc {
  font-size: 12px;
  color: #00c6ff;
  font-weight: 300;
}

.chart-container {
  height: 350px;
  margin-top: 50px;
}

.map-container {
  position: relative;
  background: rgba(13, 25, 42, 0.8);
  border: 1px solid rgba(0, 150, 255, 0.3);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 150, 255, 0.2);
}

.map-content {
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.map-overlay {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(13, 25, 42, 0.9);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 150, 255, 0.3);
  color: #00c6ff;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.map-stats {
  font-size: 11px;
  color: #a0b3c6;
}

.map-legend {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(13, 25, 42, 0.9);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 150, 255, 0.3);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #a0b3c6;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  
  &.normal { background: #52c41a; box-shadow: 0 0 5px #52c41a; }
  &.warning { background: #faad14; box-shadow: 0 0 5px #faad14; }
  &.danger { background: #ff4d4f; box-shadow: 0 0 5px #ff4d4f; }
  &.offline { background: #8c8c8c; box-shadow: 0 0 5px #8c8c8c; }
}

.alert-scroll-container {
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.alert-list {
  transition: transform 0.3s ease;
}

.alert-item {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  
  &:hover {
    transform: translateX(5px);
  }
  
  &.danger {
    background: rgba(255, 77, 79, 0.15);
    border-left: 4px solid #ff4d4f;
  }
  
  &.warning {
    background: rgba(250, 173, 20, 0.15);
    border-left: 4px solid #faad14;
  }
  
  &.info {
    background: rgba(24, 144, 255, 0.15);
    border-left: 4px solid #1890ff;
  }
  
  &.offline {
    background: rgba(140, 140, 140, 0.15);
    border-left: 4px solid #8c8c8c;
  }
}

.alert-icon {
  font-size: 18px;
  width: 30px;
  text-align: center;
  
  .danger & { color: #ff4d4f; }
  .warning & { color: #faad14; }
  .info & { color: #1890ff; }
  .offline & { color: #8c8c8c; }
}

.alert-info {
  flex: 1;
}

.alert-title {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 14px;
  
  .danger & { color: #ff4d4f; }
  .warning & { color: #faad14; }
  .info & { color: #1890ff; }
  .offline & { color: #8c8c8c; }
}

.alert-desc {
  font-size: 12px;
  color: #a0b3c6;
  line-height: 1.4;
}

.alert-time {
  font-size: 11px;
  color: #a0b3c6;
  white-space: nowrap;
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-item {
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 144, 255, 0.1);
  border-left: 3px solid #1890ff;
  
  &.urgent {
    background: rgba(250, 173, 20, 0.1);
    border-left-color: #faad14;
    
    .task-title { color: #faad14; }
  }
  
  &.completed {
    background: rgba(82, 196, 26, 0.1);
    border-left-color: #52c41a;
    
    .task-title { color: #52c41a; }
  }
}

.task-icon {
  font-size: 16px;
  color: #1890ff;
  width: 24px;
  text-align: center;
}

.task-title {
  font-weight: bold;
  color: #1890ff;
  margin-bottom: 2px;
  font-size: 13px;
}

.task-desc {
  font-size: 11px;
  color: #a0b3c6;
}

.task-time {
  font-size: 11px;
  color: #a0b3c6;
  white-space: nowrap;
  margin-left: auto;
}

.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35px;
  background: rgba(13, 25, 42, 0.9);
  border-top: 1px solid rgba(0, 150, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
  font-size: 12px;
  color: #a0b3c6;
  backdrop-filter: blur(5px);
}

.status-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #52c41a;
  box-shadow: 0 0 8px #52c41a;
  animation: pulse 2s infinite;
}

.status-normal {
  color: #52c41a;
  font-weight: bold;
}

.system-info {
  color: #00c6ff;
  font-weight: 300;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 150, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 150, 255, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 150, 255, 0.5);
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .dashboard-content {
    grid-template-columns: 1fr 1.5fr 1fr;
  }
}

@media (max-width: 992px) {
  .dashboard-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  
  .company-name {
    font-size: 20px;
  }
  
  .system-name {
    font-size: 12px;
  }
}
.dashboard-header {
  justify-content: center;
}

.header-center {
  display: flex;
  align-items: center;
  position: relative;
  left: auto;
  transform: none;
}

.logo-container {
  display: none;
}

/* 报警滚动区域优化 */
.alert-scroll-container {
  height: 40vh;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 150, 255, 0.2);
  border-radius: 8px;
  background: rgba(0, 120, 255, 0.1);
}

.alert-list {
  position: absolute;
  width: 100%;
  transition: transform 0.5s ease;
  padding: 10px;
}

/* 维护任务静态列表 */
.task-list-static {
    // height: 40vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
//   max-height: 50vh;
//   overflow-y: auto;
//   padding: 5px;
}

.task-item {
  padding: 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(24, 144, 255, 0.1);
  border-left: 3px solid #1890ff;
  
  &.urgent {
    background: rgba(250, 173, 20, 0.1);
    border-left-color: #faad14;
    
    .task-title { color: #faad14; }
  }
  
  &.completed {
    background: rgba(82, 196, 26, 0.1);
    border-left-color: #52c41a;
    
    .task-title { color: #52c41a; }
  }
}

.task-icon {
  font-size: 16px;
  color: #1890ff;
  width: 24px;
  text-align: center;
}

.task-title {
  font-weight: bold;
  color: #1890ff;
  margin-bottom: 2px;
  font-size: 13px;
}

.task-desc {
  font-size: 11px;
  color: #a0b3c6;
}

.task-time {
  font-size: 11px;
  color: #a0b3c6;
  white-space: nowrap;
  margin-left: auto;
}

/* 报警项样式优化 */
.alert-item {
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  
  &:last-child {
    margin-bottom: 0;
  }
  
  &.danger {
    background: rgba(255, 77, 79, 0.15);
    border-left: 4px solid #ff4d4f;
  }
  
  &.warning {
    background: rgba(250, 173, 20, 0.15);
    border-left: 4px solid #faad14;
  }
  
  &.info {
    background: rgba(24, 144, 255, 0.15);
    border-left: 4px solid #1890ff;
  }
  
  &.offline {
    background: rgba(140, 140, 140, 0.15);
    border-left: 4px solid #8c8c8c;
  }
}

.alert-icon {
  font-size: 18px;
  width: 30px;
  text-align: center;
  
  .danger & { color: #ff4d4f; }
  .warning & { color: #faad14; }
  .info & { color: #1890ff; }
  .offline & { color: #8c8c8c; }
}

.alert-info {
  flex: 1;
}

.alert-title {
  font-weight: bold;
  margin-bottom: 4px;
  font-size: 14px;
  
  .danger & { color: #ff4d4f; }
  .warning & { color: #faad14; }
  .info & { color: #1890ff; }
  .offline & { color: #8c8c8c; }
}

.alert-desc {
  font-size: 12px;
  color: #a0b3c6;
  line-height: 1.4;
}

.alert-time {
  font-size: 11px;
  color: #a0b3c6;
  white-space: nowrap;
}
::v-deep .device-dialog{
  background: #1890ff!important;
  color: #d5d7da!important;
}
.dashboard-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 30px;
}

.header-center {
position: absolute;
left: 50%;
transform: translateX(-50%);
text-align: center;
}

.header-right {
margin-left: auto;
display: flex;
align-items: center;
gap: 20px;
}

/* 科技感设备弹窗样式 */
::v-deep .tech-device-dialog {
.el-dialog {
  background: linear-gradient(135deg, #0a1320 0%, #142850 100%);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 12px;
  box-shadow: 
    0 0 30px rgba(0, 170, 255, 0.3),
    inset 0 0 20px rgba(0, 170, 255, 0.1);
  backdrop-filter: blur(10px);
}

.el-dialog__header {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border-radius: 12px 12px 0 0;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 170, 255, 0.3);
  
  .el-dialog__title {
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
}

.el-dialog__body {
  padding: 20px;
  background: transparent;
}

.el-dialog__headerbtn {
  top: 15px;
  
  .el-dialog__close {
    color: white;
    font-size: 18px;
  }
  
  &:hover .el-dialog__close {
    color: #00c6ff;
  }
}
}

.device-info-tech {
color: #ffffff;
}

.info-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(0, 170, 255, 0.2);

.el-icon-monitor {
  font-size: 24px;
  color: #00c6ff;
}

.device-type {
  font-weight: bold;
  color: #00c6ff;
}

.device-status {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  
  &.status-normal { background: rgba(82, 196, 26, 0.2); color: #52c41a; }
  &.status-warning { background: rgba(250, 173, 20, 0.2); color: #faad14; }
  &.status-danger { background: rgba(255, 77, 79, 0.2); color: #ff4d4f; }
  &.status-offline { background: rgba(140, 140, 140, 0.2); color: #8c8c8c; }
}
}

.info-grid {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
margin-bottom: 20px;
}

.info-item-tech {
display: flex;
align-items: center;
gap: 15px;
padding: 12px;
background: rgba(13, 25, 42, 0.5);
border: 1px solid rgba(0, 170, 255, 0.2);
border-radius: 8px;
transition: all 0.3s ease;

&:hover {
  border-color: rgba(0, 170, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.2);
}
}

.info-icon {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #00c6ff, #0072ff);
border-radius: 8px;
color: white;
font-size: 16px;
}

.info-content {
flex: 1;
}

.info-label {
font-size: 12px;
color: #a0b3c6;
margin-bottom: 4px;
}

.info-value {
font-size: 14px;
font-weight: bold;
color: #ffffff;
}

.battery-level {
display: flex;
align-items: center;
gap: 10px;

.battery-fill {
  height: 8px;
  background: linear-gradient(90deg, #52c41a, #87d068);
  border-radius: 4px;
  transition: width 0.3s ease;
}
}

.action-buttons {
display: flex;
gap: 10px;
justify-content: center;
padding-top: 15px;
border-top: 1px solid rgba(0, 170, 255, 0.2);
}
::v-deep .tech-device-dialog {
.el-dialog {
  background: linear-gradient(135deg, #0a1320 0%, #142850 100%);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 12px;
  box-shadow: 
    0 0 30px rgba(0, 170, 255, 0.3),
    inset 0 0 20px rgba(0, 170, 255, 0.1);
}

.el-dialog__header {
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  border-radius: 12px 12px 0 0;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(0, 170, 255, 0.3);
}

.el-dialog__title {
  color: white;
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.el-dialog__body {
  background: linear-gradient(135deg, #0a1320 0%, #142850 100%);
  padding: 20px;
  color: #ffffff;
}

.el-dialog__headerbtn {
  top: 15px;
  
  .el-dialog__close {
    color: white;
    font-size: 18px;
  }
  
  &:hover .el-dialog__close {
    color: #00c6ff;
  }
}
}

/* 弹窗内容样式 */
.device-info-tech {
color: #ffffff;
}

.info-header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 1px solid rgba(0, 170, 255, 0.2);

.el-icon-monitor {
  font-size: 24px;
  color: #00c6ff;
  text-shadow: 0 0 8px rgba(0, 198, 255, 0.5);
}

.device-type {
  font-weight: bold;
  color: #00c6ff;
  text-shadow: 0 0 5px rgba(0, 198, 255, 0.3);
}

.device-status {
  margin-left: auto;
  padding: 6px 16px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  
  &.status-normal { 
    background: linear-gradient(135deg, #52c41a, #73d13d);
    color: white;
    box-shadow: 0 0 10px rgba(82, 196, 26, 0.4);
  }
  &.status-warning { 
    background: linear-gradient(135deg, #faad14, #ffc53d);
    color: white;
    box-shadow: 0 0 10px rgba(250, 173, 20, 0.4);
  }
  &.status-danger { 
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: white;
    box-shadow: 0 0 10px rgba(255, 77, 79, 0.4);
  }
  &.status-offline { 
    background: linear-gradient(135deg, #8c8c8c, #bfbfbf);
    color: white;
    box-shadow: 0 0 10px rgba(140, 140, 140, 0.4);
  }
}
}

.info-grid {
display: grid;
grid-template-columns: 1fr;
gap: 15px;
margin-bottom: 20px;
}

.info-item-tech {
display: flex;
align-items: center;
gap: 15px;
padding: 12px;
background: rgba(13, 25, 42, 0.5);
border: 1px solid rgba(0, 170, 255, 0.2);
border-radius: 8px;
transition: all 0.3s ease;

&:hover {
  border-color: rgba(0, 170, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.2);
  transform: translateY(-2px);
}
}

.info-icon {
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #00c6ff, #0072ff);
border-radius: 8px;
color: white;
font-size: 16px;
text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.info-content {
flex: 1;
}

.info-label {
font-size: 12px;
color: #a0b3c6;
margin-bottom: 4px;
}

.info-value {
font-size: 14px;
font-weight: bold;
color: #ffffff;
}

.battery-level {
display: flex;
align-items: center;
gap: 10px;

.battery-fill {
  height: 8px;
  background: linear-gradient(90deg, #52c41a, #87d068);
  border-radius: 4px;
  transition: width 0.3s ease;
  box-shadow: 0 0 5px rgba(82, 196, 26, 0.3);
}

span {
  font-weight: bold;
  color: #00c6ff;
}
}

.action-buttons {
display: flex;
gap: 10px;
justify-content: center;
padding-top: 20px;
border-top: 1px solid rgba(0, 170, 255, 0.2);
}

.action-buttons .el-button {
border: 1px solid rgba(0, 170, 255, 0.3);
background: rgba(13, 25, 42, 0.5);
color: #00c6ff;
font-weight: bold;
transition: all 0.3s ease;

&:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
  border-color: rgba(0, 170, 255, 0.5);
}
}

/* 模态背景遮罩 */
::v-deep .el-dialog__wrapper {
.v-modal {
  background: rgba(10, 19, 32, 0.8);
  backdrop-filter: blur(5px);
}
}
::v-deep .tech-device-dialog{
  background: none!important;
}
